layui.define(['table', 'coreGovtApi'], function(exports) {
    var coreGovtApi = layui.coreGovtApi;
    var table=layui.table;
    var view = {
        init:function(){
        },
        delBatch:function(data){
            var dataList = [];
            dataList.push(data);
            Common.openConfirm("确认要删除吗?",function(){
            var ids =Common.concatBatchId(dataList,"id");
            coreGovtApi.del(ids,function(){
                Common.success("删除成功");
                    dataReload();
                })
            })
        },
        delRow:function(data){
            Common.openConfirm("确认要删除?",function(){
                coreGovtApi.del(data.id,function(){
                    Common.success("删除成功");
                    dataReload();
                })
            })
        }
    }
    exports('del',view);
	
});